
import type { User } from '~/types/user'
import mock from '../users-example.json'

export default defineEventHandler((event) => {
  const users: User[] = mock
  const id = getRouterParam(event, 'id')

  return users.find(user=>user.id===id)
})
